package com.srit.migration.business.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

import com.srit.base.bean.Page;
import com.srit.migration.business.bean.ColTypeRel;
import com.srit.migration.business.dao.ColTypeRelDao;
import com.srit.migration.business.service.ColTypeRelService;

/**
 * @author guan
 * @by serviceImpl.tem
 * 
 */
@Service
public class ColTypeRelServiceImpl implements ColTypeRelService {
	@Autowired(required = true)
	private ColTypeRelDao colTypeRelDao;

	@Override
	public void save(ColTypeRel colTypeRel) {
		colTypeRelDao.save(colTypeRel);
	}

	@Override
	public void update(ColTypeRel colTypeRel) {
		colTypeRelDao.update(colTypeRel);
	}

	@Override
	public ColTypeRel getById(ColTypeRel colTypeRel) {
		return (ColTypeRel) colTypeRelDao.getById(colTypeRel);
	}

	@Override
	public void delete(ColTypeRel colTypeRel) {
		colTypeRelDao.delete(colTypeRel);
	}

	@Override
	public void page(Page page) {
		colTypeRelDao.page(page);
	}

	@Override
	public void batchSave(List<ColTypeRel> colTypeRelList) {
		colTypeRelDao.batchSave(colTypeRelList);

	}

	@Override
	public List list(Page page) {
		return colTypeRelDao.list(page);
	}

}
